#
#


cddz:   main.o \
	dou_card.o \
	dou_player.o \
	dou_table.o \
	dou_game3.o \
	card_list.o
	gcc -o cddz	main.o \
	            	dou_card.o \
		    	dou_player.o \
			dou_table.o \
			dou_game3.o \
			card_list.o

main.o: src/main.c
	gcc -c src/main.c

# card
dou_card.o: 	src/douservice/dou_card.h \
		src/douservice/dou_card.c
	gcc -c src/douservice/dou_card.c

# player
dou_player.o: 	src/douservice/dou_player.h \
		src/douservice/dou_player.c
	gcc -c src/douservice/dou_player.c

# table
dou_table.o: 	src/douservice/dou_table.h \
		src/douservice/dou_table.c
	gcc -c src/douservice/dou_table.c

# game3
dou_game3.o: 	src/douservice/dou_game3.h \
		src/douservice/dou_game3.c
	gcc -c src/douservice/dou_game3.c

# card list
card_list.o: 	src/card_list.h \
		src/card_list.c
	gcc -c src/card_list.c


clean:
	rm -rf *.o

